﻿using BathhouseService.Models.FrameEnumeration;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace BathhouseService.Models.SqlModels
{
    /// <summary>
    /// 充值记录
    /// </summary>
    public class RechargeRecord : PersistPoco
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public new int ID { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        [Display(Name = "订单号")]
        public string OrderId { get; set; }
        /// <summary>
        /// 操作人标识
        /// </summary>
        [Display(Name = "操作人标识")]
        public Guid ServicePersonId { get; set; }
        /// <summary>
        /// 操作人姓名
        /// </summary>
        [Display(Name = "操作人姓名")]
        public string ServicePersonName { get; set; }
        /// <summary>
        /// 客户标识
        /// </summary>
        [Display(Name = "客户标识")]
        public Guid CustomerId { get; set; }
        /// <summary>
        /// 客户姓名
        /// </summary>
        [Display(Name = "客户姓名")]
        public string CustomerName { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        [Display(Name = "支付时间")]
        public DateTime PaymentTime { get; set; }
        /// <summary>
        /// 选择套餐
        /// </summary>
        [Display(Name = "选择套餐")]
        [Required(ErrorMessage = "选择套餐是必填项")]
        public int PackageServiceId { get; set; }
        /// <summary>
        /// 选择套餐
        /// </summary>
        [Display(Name = "选择套餐")]
        public PackageService PackageService { get; set; }
        /// <summary>
        /// 支付金额
        /// </summary>
        [Display(Name = "支付金额")]
        [Required(ErrorMessage = "支付金额是必填项")]
        public double ActualPayment { get; set; }
        /// <summary>
        /// 卡状态
        /// </summary>
        public HandlTypeEnum HandlTypeEnums { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        [Display(Name = "支付方式")]
        public int PayWayId { get; set; }
        [Display(Name = "支付方式")]
        public PayWay PayWay { get; set; }


    }
}
